<div class="SubMainTitle">
	<b class="FT14">密码保护设置 </b>
</div>
<div class="MySearch">
	<form method="get">					
		查找 <label for="name">从:</label>
		<select name="byyyy" id="bs_yyyy"></select>-<select name="bmm" id="bs_mm"></select>-<select name="bdd" id="bs_dd"></select>
		-- <label for="name">到:</label>
		<select name="eyyyy" id="es_yyyy"></select>-<select name="emm" id="es_mm"></select>-<select name="edd" id="es_dd"></select>
		<label for="name">名称：</label><input size="10" type="text" name="name" id="name">
		<input type="submit"  class="submitMini"  value="提交">
		<input type="hidden" name="act" value="sell_depot">			
	</form>
</div>
<script type="text/javascript">
var date = new Date();
var d_y=date.getYear(),d_m=date.getMonth() + 1,d_d=date.getDate(),i
,byyyy = _.e('bs_yyyy'),bmm=_.e('bs_mm'),bdd=_.e('bs_dd')
,eyyyy = _.e('es_yyyy'),emm=_.e('es_mm'),edd=_.e('es_dd');
for(i=d_y-5;i<=d_y;i++)
{
	byyyy.options[byyyy.options.length] = new Option(i,i);
	eyyyy.options[eyyyy.options.length] = new Option(i,i);
}
eyyyy.value=byyyy.value =d_y;
for(i=1;i<=12;i++)
{
	bmm.options[bmm.options.length] = new Option(i,i);
	emm.options[emm.options.length] = new Option(i,i);
}
emm.value=bmm.value =d_m;
for(i=1;i<=31;i++) 
{ 
	bdd.options[bdd.options.length] = new Option(i,i);
	edd.options[edd.options.length] = new Option(i,i);
}
edd.value=bdd.value =d_d;


$(function(){
	$("td.td_img").each(function(){Player.image(this,60);});
	$("input.submitMini")
	.mouseover(function(){this.className='submitMiniOver'})
	.mouseout(function(){this.className='submitMini'});
document.title = $("b.FT14","div.SubMainTitle").html().trim()+"_"+document.title
});
</script>
<div class="Mylist">
	<table width="100%" border="0" cellspacing="0" cellpadding="5">
		<tr>
			<td width="7%" class="b">选择</td>
			<td width="10%" class="b">商品图片</td>
			<td width="43%" class="b">商品名称</td>
			<td width="14%" class="b">最近上架时间</td>
			<td width="7%" class="b">价格</td>
			<td width="8%" class="b">剩余件数</td>
			<td width="11%" class="b">编辑</td>
		</tr>
		<?
		foreach($rs as &$v)
		{
			$url = pct::url($v['gYmd'],$v['gid']);
			$img = pct::img($v['gYmd'],$v['gid']);
			$uploadDate = $v['uploadDate']?g::time($v['uploadDate']):'还没上架';
			$cSellType  = $v['cSellType'] == 1?"一口价":"拍卖";
			$dwNum      = $v['dwNumSell']?"{$v['dwNum']}-{$v['dwNumSell']}=<span class=\"orange b\">".($v['dwNum']-$v['dwNumSell'])."</span>":$v['dwNum'];
		?>
		<tr>
			<td><input type="checkbox" name="gid[]" id="gid[]"></td>
			<td class="td_img" src="<?=$img[0]?>" href="<?=$url?>"></td>
			<td><a href="<?=$url?>" target="_blank"><?=$v['sTitle']?></a></td>
			<td><?=$uploadDate?></td>
			<td><?=$cSellType?><span class="orange b"><?=$v['dwPrice_bin']?></span></td>
			<td><?=$dwNum?></td>
			<td><a href="<?=$url?>" target="_blank">编辑</a></td>
		</tr>
		<?
		}
		?>
	</table>
	<div class="div1">
		<div class="fleft" style="height:20px; margin:1px 0 0 0;">
		 <input type="button" class="submitMini" value="全选">
		 <input type="button" class="submitMini" value="反选">
		 <input type="button" class="submitMini" value="删除">
		 <input type="button" class="submitMini" value="店铺推荐">
		 <input type="button" class="submitMini" value="停止出售，放入仓库">
		 &nbsp;&nbsp;
		 <?=$pg['str']?>
		</div>
		<div class="fright" style="width:200px;height:20px;">			
			<ul class="page">
				<?=implode("",$pg['np'])?>
			</ul>
			<? //$pg['input']?>
		</div>
	</div>
</div>
